package com.rajaev.dtu.tractor.domain.vo;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
public class FaultStatisticQueryVo {

    /**
     * 查询条件
     * */
    private String condition;


    /**
     * @see QueryType
     */
    private QueryType type;

    /**
     * 是否查询实时数据
     */
    private boolean isTimely;


    /**
     * 开始日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startDate;

    /**
     * 结束日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;


    public static enum QueryType{
        BY_CUSTOMER,
        BY_PROJECT_TEAM,
        BY_VIN

    }
}
